package com.ljh.mboxvidoserver.console.shop.dao;

import com.ljh.mboxvidoserver.console.shop.entity.Shop;
import com.ljh.mboxvidoserver.console.shoptype.entity.ShopType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface ShopRepository2 extends JpaRepository<Shop,Integer>{
    @Query(value = "select st from Shop st where st.shopName like %?1%")
    Page<Shop> findAllLikeTypeName(String shopName, Pageable pageable);
}
